package com.yanyeori.webtest;

import com.yanyeori.framework.security.annotation.EnableSecurity;
import com.yanyeori.framework.web.annotation.EnableCorsConfig;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * WebTestMain
 *
 * @author chenkuan 2020/8/7
 */
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class})
@EnableDubbo
@EnableSecurity
@EnableCorsConfig
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.yanyeori.nacosfeign"})
public class WebTestMain {
    public static void main(String[] args) {
        SpringApplication.run(WebTestMain.class, args);
    }
}
